package com.e_manager.soft.emanager.service;


import com.e_manager.soft.emanager.entity.*;
import com.e_manager.soft.emanager.entity.parameter.MstMessageParameter;
import com.e_manager.soft.emanager.entity.parameter.StatisticHourParameter;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 对Token进行操作的接口
 */
public interface MstMessageService {
    /**
     * 插入报文信息
     *
     * @param mstMessage
     */
    void insertMstMessage(MstMessage mstMessage);

    /**
     * 根据设备编号查询信鸽token
     *
     * @param equipment
     * @return
     */
    List<User> queryXinToken(Equipment equipment);

    /**
     * 报文列表查询
     *
     * @return
     */
    PageInfo<MstMessage> findMessageByPage(MstMessageParameter mp);

    /**
     * web按月份统计
     *
     * @return
     */
    Statistics queryStatistics();

    /**
     * 安卓按天统计
     *
     * @param statisticHourParameter
     * @return
     */
    StatisticsHour queryHourStatistics(StatisticHourParameter statisticHourParameter);
}
